package com.todo.content.iface.backend;


import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;
import com.todo.content.iface.backend.request.*;
import com.todo.content.iface.backend.response.*;

/**
 * @author zhangwenxiang
 * @date 2024/3/16 09:31
 * @description
 */
public interface ContentTopicBackendIface {

    /**
     * 新增话题信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> insertContentTopic(InsertContentTopicReq req);

    /**
     * 根据主键id更新话题信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> updateContentTopicById(UpdateContentTopicByIdReq req);

    /**
     * 根据主键删除话题信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> removeContentTopicById(RemoveContentTopicByIdReq req);

    /**
     * 启禁用话题信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> enableContentTopicById(EnableContentTopicByIdReq req);

    /**
     * 根据主键信息查询话题详情
     *
     * @param req
     * @return
     */
    BizResponse<ContentTopicDetailByIdResp> queryContentTopicById(QueryContentTopicByIdReq req);

    /**
     * 多条件查询话题信息
     *
     * @param req
     * @return
     */
    BizPageResponse<QueryContentTopicByConditionResp> queryContentTopicByCondition(QueryContentTopicByConditionReq req);

}
